package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.SmsCouponHistoryMapper;
import org.code.mallspringboot.pojo.SmsCouponHistory;
import org.code.mallspringboot.service.SmsCouponHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class SmsCouponHistoryServiceImpl implements SmsCouponHistoryService{

    @Autowired
    private SmsCouponHistoryMapper smsCouponHistoryMapper;

    @Override
    public List<SmsCouponHistory> selectPage(Integer pageNum, Integer pageSize, Integer useStatus, String orderSn, Integer couponId) {
        return smsCouponHistoryMapper.selectPage((pageNum - 1) * pageSize, pageSize, useStatus, orderSn, couponId);
    }

    @Override
    public int total(Integer useStatus, String orderSn, Integer couponId) {
        return smsCouponHistoryMapper.total(useStatus, orderSn, couponId);
    }
}




